from spirems import Publisher, def_msg, Logger, CSVLogger, Rate
import time

logger = Logger()
rate = Rate(1)

while True:
    try:
        rate.sleep()
        logger.info('Hello')
        logger.warn('Hello')
        logger.error('No No No!')
    except KeyboardInterrupt:
        logger.quit()
        break
